import Vue from 'vue'
import VueRouter from 'vue-router'
import userCenter from "../views/userCenter/userCenter";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'userCenter',
    component: userCenter,
		meta:{
			title:"个人中心",
			noBack:true
		}
  },
  {
    path: '/renzheng',
    name: 'renzheng',
    component: () => import('../views/renzheng/renzheng'),
		meta:{
			title:"认证"
		}
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes,
	scrollBehavior () {
	  return { x: 0, y: 0 }
	}
})

export default router
